#ifndef __CHERRY_SOUND_MANAGER_H__
#define __CHERRY_SOUND_MANAGER_H__

#include "cocos2d.h"
#include "SimpleAudioEngine.h"
USING_NS_CC;
using namespace std;

class SoundManager {
public:
	static void playMusic(const char* name, bool loop);
	static void pauseMusic();
	static void preloadEffect(const char* name);
	static unsigned int playEffect(const char* name); // return Sound ID
	static void stopAllEffect();
	static void stopEffect(unsigned int soundId);
	static void preloadMusic(const char* name);
	static void stopMusic(bool releaseData);
	static void resumeMusic();
	static void muteSound();
	static void muteMusic();
	static void setBackgroundMusicVolume(float volume);
	static float getBackgroundMusicVolume();
};

#endif